<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateYsAndroidVersionTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('android_version', function(Blueprint $table)
		{
			$table->increments('id')->comment('主键id');
			$table->integer('version_code')->comment('版本号');
			$table->integer('update_time')->comment('更新时间');
			$table->string('apk_url')->nullable()->comment('下载地址');
			$table->bigInteger('apk_size')->nullable()->comment('apk大小单位b');
			$table->text('note')->nullable()->comment('新版本描述');
			$table->string('version_name', 32)->nullable()->comment('版本名称');
			$table->boolean('is_force')->nullable()->default(0)->comment('是否强制更新1为强制更新');
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('android_version');
	}

}
